 public class Student{
 	private int id;
 	private String name;

 	public void setId(int id){
 		if (id > 0) {
 			this.id = id;
 		}else{
 			System.out.println("id 不合理");
 		}
 		
 	}
 	public void setName(String name){
 		this.name = name;
 	}

 	public int getId(){
 		
 		return id;
 	}
 	public String getName(){
 		return name;
 	}

 	public void show(){
 		System.out.println("我是 " + name + ",id是" + id);
 	}
}